﻿<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>规则生成器</title>
</head>
    <SCRIPT type=text/javascript>
	<!--
	function gRule()
	{
		var oTxt = document.getElementById("tRule");
		var oForm = document.getElementById("theForm");
		
		var s = oTxt.value;
		var exs = new Array(/\\/gi, /\^/gi, /\$/gi, /\{/gi, /\[/gi, /\./gi, /\(/gi, /\*/gi, /\+/gi, /\?/gi, /\!/gi, /\#/gi, /\|/gi);

		var chars = new Array("\\", "^", "$", "{", "[", ".", "(", "*", "+", "?", "!", "#", "|");
		for(i=0; i<exs.length; i++){
			s = s.replace(exs[i],"\\"+chars[i]);
		}
		
		s = s.replace(/\s+/gi,"\\s+");
		oTxt.value = s;
	}
	
	function copyRule()
	{
		var o = document.getElementById("tRule");
		o.focus();
		o.select();
		document.execCommand("copy");
	}
	-->
</SCRIPT>
<body>
			<div class="mframe">
				<table width="700" align="center" cellspacing="0" cellpadding="0">
					<tr>
						<td class="tl"></td>
						<td class="tm">
							<span class="tt">
								规则生成器：
							</span>
						</td>
						<td class="tr"></td>
					</tr>
				</table>
				<table width="700" align="center" cellspacing="0" cellpadding="0">
					<tr>
						<td class="ml"></td>
						<td class="mm">
							<table cellpadding="3" width="95%" align="center">
								<tr>
									<td width="120" align="right" valign="top">
									使用说明：
									</td>
									<td>第一步:


 查看目标网页源文件[IE&gt;&gt;&gt;查看&gt;&gt;&gt;源文件];<br>
									  第二步:


 网页源码中找到一段html代码(代码中包括目标代码)，并复制到下边的文本框;<br>
 第三步:


 将代码中的目标代码替换为[blue1000];<br>
 第四步:


 点击生成规则，文本框内就得到生成的匹配规则;<br>
 第五步: 点击复制规则,将复制到的规则粘贴进对应的匹配规则文本框中.</td>
								</tr>
								<FORM id=theForm name=theForm>
								<tr>
									<td align="right" valign="top">
									输入html代码：
									</td>
									<td>
									<TEXTAREA id=tRule rows=5 cols=40></TEXTAREA>
                                    </td>
								</tr>
								<tr>
									<td align="center" colspan="2">
									<INPUT onclick=gRule() type=button value=生成规则> &nbsp; <INPUT onclick=copyRule() type=button value=复制规则>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
									</td>
								</tr>
								</FORM>
							</table>
						</td>
						<td class="mr"></td>
					</tr>
				</table>
				<table width="700" align="center" cellspacing="0" cellpadding="0">
					<tr>
						<td class="bl"></td>
						<td class="bm">&nbsp;</td>
						<td class="br"></td>
					</tr>
				</table>
			</div>
</body>
</html>
